package com.bsoft.gol.hcs.specialist.entity;

import javax.persistence.*;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.Date;
import java.util.Objects;

/**
 * 检验报告微生物培养结果表
 * @author lanyu
 * @date 2021年10月14日 10:07
 */
@Entity
@Table(name = "inspect_report_microbe_result")
@XmlRootElement(name = "PlantResult")
public class InspectReportMicrobeResultEntity {
    /**
     * 检验报告微生物培养结果id
     */
    private String inspectReportMicrobeResultId;
    /**
     * 检验报告id
     */
    private String inspectReportId;
    /**
     * 检验项目代码
     */
    private String plantTestId;
    /**
     * 检验项目名称
     */
    private String plantTestName;
    /**
     * 细菌培养类型
     */
    private String plantType;
    /**
     * 培养结果
     */
    private String plantResult;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date modifyTime;


    @Id
    @Column(name = "inspect_report_microbe_result_id")
    public String getInspectReportMicrobeResultId() {
        return inspectReportMicrobeResultId;
    }

    public void setInspectReportMicrobeResultId(String inspectReportMicrobeResultId) {
        this.inspectReportMicrobeResultId = inspectReportMicrobeResultId;
    }

    @Basic
    @Column(name = "inspect_report_id")
    public String getInspectReportId() {
        return inspectReportId;
    }

    public void setInspectReportId(String inspectReportId) {
        this.inspectReportId = inspectReportId;
    }

    @Basic
    @Column(name = "plant_test_id")
    @XmlElement(name = "PlantTestId")
    public String getPlantTestId() {
        return plantTestId;
    }

    public void setPlantTestId(String plantTestId) {
        this.plantTestId = plantTestId;
    }

    @Basic
    @Column(name = "plant_test_name")
    @XmlElement(name = "PlantTestName")
    public String getPlantTestName() {
        return plantTestName;
    }

    public void setPlantTestName(String plantTestName) {
        this.plantTestName = plantTestName;
    }

    @Basic
    @Column(name = "plant_type")
    @XmlElement(name = "PlantType")
    public String getPlantType() {
        return plantType;
    }

    public void setPlantType(String plantType) {
        this.plantType = plantType;
    }

    @Basic
    @Column(name = "plant_result")
    @XmlElement(name = "PlantResult")
    public String getPlantResult() {
        return plantResult;
    }

    public void setPlantResult(String plantResult) {
        this.plantResult = plantResult;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "modify_time")
    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        InspectReportMicrobeResultEntity that = (InspectReportMicrobeResultEntity) o;
        return Objects.equals(inspectReportMicrobeResultId, that.inspectReportMicrobeResultId) && Objects.equals(inspectReportId, that.inspectReportId) && Objects.equals(plantTestId, that.plantTestId) && Objects.equals(plantTestName, that.plantTestName) && Objects.equals(plantType, that.plantType) && Objects.equals(plantResult, that.plantResult) && Objects.equals(createTime, that.createTime) && Objects.equals(modifyTime, that.modifyTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(inspectReportMicrobeResultId, inspectReportId, plantTestId, plantTestName, plantType, plantResult, createTime, modifyTime);
    }
}
